[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Returns the first item in this view: the item
that would appear first if the view was enumerated.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public T GetFirst() |
Visual Basic (Declaration) |
---|
Public Function GetFirst As T |
Visual C++ |
---|
public: T GetFirst () |
Return Value
The first item in the view.Remarks
GetFirst() takes time O(log N), where N is the number of items in the set.
Exceptions
Exception | Condition |
---|---|
System..::InvalidOperationException | The view has no items in it. |
See Also
Wintellect.PowerCollections Namespace